From: Aaron Schulz Date: Tue, 20 Jan 2009 22:55:20 +0000 (+0000) Subject: Follow up to r45780: catch Talk:interwiki:x links X-Git-Tag: 1.31.0-rc.0~43337 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=5f4edae8b767c6492a2be1f9d01c1986ee715f8a;p=lhc%2Fweb%2Fwiklou.git Follow up to r45780: catch Talk:interwiki:x links --- diff --git a/includes/Title.php b/includes/Title.php index 8ec621721f..5aa1ffedc2 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2077,6 +2077,8 @@ class Title { if( $ns == NS_TALK && preg_match( $prefixRegexp, $dbkey, $x ) ) { if( $wgContLang->getNsIndex( $x[1] ) ) return false; # Disallow Talk:File:x type titles... + else if( Interwiki::isValidInterwiki( $x[1] ) ) + return false; # Disallow Talk:Interwiki:x type titles... } } elseif( Interwiki::isValidInterwiki( $p ) ) { if( !$firstPass ) {